<?php $languages = $form->getObject() ?>
<h1><?php echo $languages->isNew() ? __("New Languages") : __("Edit Languages")?></h1>

<form action="<?php echo url_for('languages/update'.(!$languages->isNew() ? '?languages_id='.$languages->getLanguagesId() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
  <table>
    <tfoot>
      <tr>
        <td colspan="2">
          &nbsp;<a href="<?php echo url_for('languages/index') ?>"><?php echo __("Cancel") ?></a>
          <?php if (!$languages->isNew()): ?>
            &nbsp;<?php echo link_to('Delete', 'languages/delete?languages_id='.$languages->getLanguagesId(), array('post' => true, 'confirm' => 'Are you sure?')) ?>
          <?php endif; ?>
          <input type="submit" value=<?php echo __("Save") ?> />
        </td>
      </tr>
    </tfoot>
    <tbody>
      <?php echo $form->renderGlobalErrors() ?>
      <tr>
        <th><?php echo $form['name']->renderLabel() ?></th>
        <td>
          <?php echo $form['name']->renderError() ?>
          <?php echo $form['name'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['code']->renderLabel() ?></th>
        <td>
          <?php echo $form['code']->renderError() ?>
          <?php echo $form['code'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['image']->renderLabel() ?></th>
        <td>
          <?php echo $form['image']->renderError() ?>
          <?php echo $form['image'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['directory']->renderLabel() ?></th>
        <td>
          <?php echo $form['directory']->renderError() ?>
          <?php echo $form['directory'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['sort_order']->renderLabel() ?></th>
        <td>
          <?php echo $form['sort_order']->renderError() ?>
          <?php echo $form['sort_order'] ?>

        <?php echo $form['languages_id'] ?>
        </td>
      </tr>
    </tbody>
  </table>
</form>
